package com.test.design.pattern.state.before;

/**
 * @ClasName Client
 * @Descripution TODO
 * @Author USER
 * @Date 2022/2/24 9:41
 * @Version V1.0
 */
public class Client {

    public static void main(String[] args) {
        //创建电梯对象
        Lift lift = new Lift();

        //设置当前电梯的状态
        lift.setState(ILift.RUNNING_STATE);

        //打开
        lift.open();
        lift.close();
        lift.run();
        lift.stop();
    }

}
